package string;

import java.sql.Struct;

/**
 *
 */
public class SringStringBuilderDemo {
    public static void main(String[] args) {
        String s = "a";
        StringBuilder builder = new StringBuilder(s);
        for (int i =0;i<10000000;i++){ //1000万次
            builder.append(i);
        }
        System.out.println("执行结束");

        /*
        String s = "a";
        StringBuilder builder = new StringBuilder(s)
        for (int i =0;i<10000000;i++){ //1000万次
            s+=i;
        }
        System.out.println("执行结束");

         */
    }
}
